//
//  CellOfyouji.m
//  project-A (pianke)
//
//  Created by dllo on 16/2/29.
//  Copyright © 2016年 scott. All rights reserved.
//

#import "CellOfyouji.h"
#import "ModelOfyouji.h"
#import <DKNightVersion.h>

#define WIDTH self.contentView.frame.size.width

#define HEIGHT self.contentView.frame.size.height

@interface CellOfyouji ()



@end

@implementation CellOfyouji


-(void)dealloc{
    [_view release];
    [_title release];
    [super dealloc];
}

-(void)passModel:(ModelOfyouji *)model{
    
    
    
    
}

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    
    if (self ) {
        [self creatview];
        
        
    }
    return self;
}

-(void)creatview{
    
    self.title = [[UILabel alloc]init];
    
    [self.contentView addSubview:self.title];
    
    self.title.font = [UIFont fontWithName:@"Arial-BoldMT" size:22];
    
    
    self.title.textAlignment = 1;
    
    self.view = [[UIView alloc]init];
    [self.contentView addSubview:self.view];
    
    self.view.backgroundColor = [UIColor lightGrayColor];
   // self.title.textColor = [UIColor redColor];
   self.title.dk_textColorPicker = DKColorWithColors([UIColor blackColor], [UIColor colorWithRed:0.64  green:0.74 blue:0.86 alpha:1]);
//
    [self.view release];
    
    
    [self.title release];
    
}

-(void)layoutSubviews{
    
    [super layoutSubviews];
    
    self.title.frame = CGRectMake(0, 0, WIDTH, HEIGHT - 1);
    
    self.view.frame = CGRectMake(15, HEIGHT - 1, WIDTH - 30, 1);
    
}

@end
